﻿<UserControl x:Class="USMC.Net.RoutCanvas"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" >
    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Canvas Grid.Row="1" Grid.Column="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
            <StackPanel Grid.Row="1" Grid.Column="0">
                <Label>Масштаб</Label>
                <Button HorizontalAlignment="Center" Width="20" Click="Button_Click">+</Button>
                <Slider Orientation="Vertical" Height="100" HorizontalAlignment="Center" Minimum="-10" Name="zoomSlider" ValueChanged="zoomSlider_ValueChanged"></Slider>
                <Button HorizontalAlignment="Center" Width="20" Click="Button_Click_1">-</Button>
                <Label Content="1" HorizontalAlignment="Center" Name="zoomLabel"/>
            </StackPanel>
        </Grid>
    </ScrollViewer>
</UserControl>
